package com.acoffee.java.aopAspect;

import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author acoffee
 * @create 2021-11-15 17:52
 */
public class CookieTest {
    @Test
    public void test(){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");

        CookieService cookieService = context.getBean("cookServiceProxy", CookieService.class);
        Object cookServiceProxy = context.getBean("cookServiceProxy");
        System.out.println(cookieService);
        cookieService.Cooking();
    }
}
